package com.jax.pronet.bo;

import javax.xml.bind.annotation.*;
import java.util.List;

@XmlRootElement(name = "Network")
@XmlAccessorType(value = XmlAccessType.FIELD)
public class Network {

  @XmlTransient
	private int id;

  @XmlTransient
	private String networkName;

  @XmlElement(name="Programmer")
	private List<Programmer> listOfProgrammers;

	public Network(int id, String networkName,
			List<Programmer> listOfProgrammers) {
		super();
		this.id = id;
		this.networkName = networkName;
		this.listOfProgrammers = listOfProgrammers;
	}
	
	public Network(){}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getNetworkName() {
		return networkName;
	}

	public void setNetworkName(String networkName) {
		this.networkName = networkName;
	}

	public List<Programmer> getListOfProgrammers() {
		return listOfProgrammers;
	}

	public void setListOfProgrammers(List<Programmer> listOfProgrammers) {
		this.listOfProgrammers = listOfProgrammers;
	}

	@Override
	public String toString() {
		return "Network [id=" + id + ", networkName=" + networkName
				+ ", listOfProgrammers=" + listOfProgrammers + "]";
	}
	
	
	
}
